package com.isis.jdo.entity;

import java.util.Date;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class UserConnexion {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;
	
	@Persistent
	private String email=null;
	
	@Persistent
	private Date dateConnexion;
	
	
	
	public UserConnexion(String email) {
	
		this.email = email;
		this.dateConnexion = new Date();
	}
	
	// Accessors for the fields. JPA doesn't use these, but your application
	// does.
	public Long getKey() {
		return key;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getDateConnexion() {
		return dateConnexion;
	}
	public void setDateConnexion(Date dateConnexion) {
		this.dateConnexion = dateConnexion;
	}

}
